package com.gzs.learn.springcloud;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author zhisong.guan
 */
@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
public class UserApp {
    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(UserApp.class);
        ctx.registerShutdownHook();
        log.info("start user app success");
    }
}
